import Episodes from './Episodes';
import bangumiDetail from './bangumiDetail';
import bangumiSeasons from './bangumiSeasons';
import bangumiNewestEp from './bangumiNewestEp';
import bangumiUserStatus from './bangumiUserStatus';

export default class bangumiData {
  code: number;
  message: string;
  result: bangumiData;
  rank: object;
  cover: string;
  evaluate: string;
  link: string;
  media_id: number;
  mode: number;
  season_status: number;
  season_type: number;
  type: number;
  season_title: string;
  share_ul: string;
  square_cover: string;
  title: string;
  episodes: Array<Episodes>;
  pv_episodes: Array<Episodes>;
  publish: bangumiPublish;
  new_ep: bangumiNewestEp;
  newest_Ep: bangumiNewestEp;
  rating: bangumiRating;
  rights: bangumiRights;
  seasons: Array<bangumiSeasons>;
  stat: bangumiStat;
  user_status: bangumiUserStatus;
  detail: string;
  detail_media: bangumiDetail;
  payment: bangumiPayment;
  styles: Array<bangumiStyle>;
  section: Array<bangumiSection>;
}

export class bangumiPayment{
  dialog:bangumiDialog;
}

export class bangumiDialog {
  desc: string;
  title: string;
  btn_right: btnRight;
  btn_left: btnRight;
}

export class btnRight {
  type: string;
  title: string;
}

export class bangumiStyle {
  id: number;
  name: string;
  url: string;
}

export class bangumiSection {
  id: number;
  title: string;
  episode_id: number;
  episodes: Array<Episodes>;
}

export class bangumiPublish {
  is_finish: number;
  pub_time: string;
  pub_time_show: string;
  weekday: number;
}

export class bangumiRating {
  count: number;
  score: number;
}

export class bangumiRights {
  allow_bp: number;
  allow_download: number;
  allow_review: number;
  area_limit: number;
  ban_area_show: number;
  copyright: string;
  is_preview: number;
}
export class bangumiStat {
  play: string;
  danmakus: number;
  favorites: number;
  followers: string;
  views: number;
}